package day01;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;

/**
 * @author tongchen
 * @create 2022-11-27 9:51
 */
public class RemoveRepeat {
    public static void main(String[] args) {
        //测试输入
        Scanner scan=new Scanner(System.in);
        int n=scan.nextInt();
        String[]strs=new String[n];
        for (int i = 0; i < strs.length; i++) {
            strs[i]=scan.next();
        }
        //创建hash和顺序表
        HashSet<String> set = new HashSet<>();
        ArrayList<String> list = new ArrayList<>();
        for (int i = 0; i < strs.length; i++) {
            if(!set.contains(strs[i])){
                set.add(strs[i]);
                list.add(strs[i]);
            }
        }
       //输出
        for(String s:list){
            System.out.println(s);
        }
    }

}
